package com.yykj.drup.server.service.feign.fallback;

import com.yykj.common.vo.ResultVO;
import com.yykj.drup.server.service.feign.PayCenterServerFeign;
import com.yykj.pay.center.client.form.PayCreateForm;
import lombok.extern.slf4j.Slf4j;

import javax.validation.Valid;
import java.util.Map;

/**
 * @Author zeng
 * @Date 2022/3/25
 */
@Slf4j
public class PayCenterServerFeignFallBack implements PayCenterServerFeign {


    @Override
    public ResultVO<Map<String, String>> create(@Valid PayCreateForm payCreateForm) {
        log.error("服务调用失败 ：pay-center-server.create()");
        throw new RuntimeException("服务调用失败 ：pay-center-server");
    }

}
